using B.S.XZYData.ErrorCode;
using MediatR;

namespace B.S.XZYData.Api.Wrter.Application.Command.Plan
{
    /// <summary>
    /// 导入生产计划命令
    /// </summary>
    public class ImportPlanCommand : IRequest<ApiResult<ImportPlanResult>>
    {
        /// <summary>
        /// 文件字节数组
        /// </summary>
        public byte[] FileBytes { get; set; }

        /// <summary>
        /// 文件名
        /// </summary>
        public string FileName { get; set; }

        /// <summary>
        /// 操作人
        /// </summary>
        public string OperateBy { get; set; }
    }

    /// <summary>
    /// 导入生产计划结果
    /// </summary>
    public class ImportPlanResult
    {
        /// <summary>
        /// 成功数量
        /// </summary>
        public int SuccessCount { get; set; }

        /// <summary>
        /// 失败数量
        /// </summary>
        public int FailCount { get; set; }

        /// <summary>
        /// 总数量
        /// </summary>
        public int TotalCount { get; set; }

        /// <summary>
        /// 错误信息列表
        /// </summary>
        public string[] ErrorMessages { get; set; } = new string[0];
    }
} 